<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .biao{
            width:700px;
            height:700px;
            background:red;
            margin:0 auto;
        }
        .id{
            width:20px;
            height:20px;
            text-align:center;
            border:1px pink solid;
        }
        .id-0{
            width:100%;
            height:50px;
            border:1px pink solid;
            background:white;
            margin: 0 auto;
        }
        .id-1{
            width:100%;
            height:300px;
            border:1px pink solid;
            background:white;
            margin: 0 auto;
        }
        .xiou{
            margin-top:30px;
            margin-left:250px;
            width:200px;
            height:50px;
        }
    </style>
</head>
<body>
    <?php
    $id =$_GET["id"];
    $name=$_GET["name"];
    $text=$_GET["text"];
    ?>
    <form class="biao" action="add.php" method="get">
        <?php
            echo "<h2>";
            echo "修改第<input class='id' type=\"text\" name=\"id\" value=\"{$id}\" />条留言";
            echo "</h2>";
            echo "<input class='id-0' type=\"text\" name=\"name\" value=\"{$name}\" />";
            echo "<input class='id-1' type=\"text\" name=\"text\" value=\"{$text}\" />";

        ?>
        <input type="submit" value="保存修改" class="xiou">
    </form>
</body>
</html>


